package qimofuxi;

import java.time.LocalDateTime;
import java.util.Scanner;

public class WhileTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("等待用户输入:):");

        while (true) {
            String input = scanner.nextLine();
            if (input.equals("n")) {
                break;
            } else {
                LocalDateTime now =  LocalDateTime.now();
                System.out.println(now+ "循环操作中~~~ 按n退出循环 "  );

            }

        }
    }
}
